﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

namespace Nirvana
{ 
    /// <summary>
    /// The collision type of this cell.
    /// </summary>
    public enum GroundType
    {
        /// <summary>
        /// This cell is block.
        /// 阻止
        /// </summary>
        Block = 0,

        /// <summary>
        /// This cell is walkable.
        /// 可行走
        /// </summary>
        Walkable = 1,

        /// <summary>
        /// This cell is safety area.
        /// 安全
        /// </summary>
        Safety = 2,

        /// <summary>
        /// The obstacle cell but support find way.
        /// 障碍道路
        /// </summary>
        ObstacleWay = 3,

        /// <summary>
        /// The road for path finding.
        /// 道路
        /// </summary>
        Road = 4,

        /// <summary>
        /// 水
        /// </summary>
        Water = 5,

        /// <summary>
        /// The road for path finding.
        /// 钓鱼
        Fishing = 6,
    }

    [Serializable]
    public class SceneCell : AbstractSceneCell
    {
        [SerializeField]
        [Tooltip("The ground type for this cell.")]
        private GroundType ground = GroundType.Walkable;

        public GroundType Ground
        {
            get { return this.ground; }
            set { this.ground = value; }
        }


    }
}

